#include <iostream>
#include <vector>

using namespace std;

int main() {
    vector<int> myVector;

    myVector.push_back(3);
    myVector.push_back(7);
    myVector.push_back(11);
    myVector.push_back(5);

    cout << "Element in the vector: ";
    for (int element : myVector)
    {
        cout << element << " ";
    }

    cout << endl;

    cout << "First element: " << myVector[0] << endl;

    cout << "Second element: " << myVector.at(1) << endl;

    cout << "Size of the vector: " << myVector.size() << endl;

    myVector.erase(myVector.begin()+2);

    cout << "Elements in the vector after erasing: ";
    for(int element : myVector) {
        cout << element << " ";
    }
    cout << endl;

    myVector.clear();
    cout << "Size of the vector after clearing: " << myVector.size() << endl;

    return 0;
}